<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue事件冒泡</title>
    <style>
        .outer{
            width: 180px;
            height: 180px;
            background: gold;
            margin: 100px auto;
            padding: 30px;
            border-radius: 50%;
        }
        .center{
            width: 130px;
            height: 130px;
            background: pink;
            padding: 30px;
            border-radius: 50%;
        }
        .inner{
            width: 130px;
            height: 130px;
            background: cyan;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="outer" @click="outer">
            <div class="center" @click="center">
                <div class="inner" @click="inner"></div>
            </div>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script>
        var vue = new Vue({
            el:'#app',
            methods:{
                outer(){
                    console.log("外层")
                },
                center(){
                    console.log("中间")
                },
                inner(){
                    console.log("内层")
                },
            }
        })

    </script>
</body>
</html>